<extend name="Base/common"/>
<block name="style">
    <style type="text/css">
        h1 {
            font-size: 24px;
            color: #009688;
            text-align: center;
            margin-bottom: 30px;
            padding-top: 10px;
        }

        .layui-container {
            margin-top: 50px;
            margin-bottom: 110px;
        }

        .add a {
            width: 100px;
            float: left;
        }

        #main {
            width: 330px;
            height: 38px;
            border: 1px #009688 solid;
            /*margin-left: 400px;*/
            text-align: right;
            border-right: none;
            float: right;
        }

        input {
            font-size: 20px;
            height: 20px;
            text-align: left;
            padding: 8px;
            border: none;
        }

        /*#search {
            float: right;
        }*/

        th a {
            margin: 0 10px;
        }
        .layui-form {
            margin-right: 100px;
        }
        
    </style>
</block>
<block name="body">
    <fieldset  class="layui-elem-field site-demo-button" style="margin:20px 5px 20px 5px;padding:30px 5px; ">
    <!--<h1><b>配置管理</b></h1>-->
        <legend><h1>配置管理</h1></legend>
    <!--头部-->
    <div class="layui-container">
        <!--新增-->
        <div class="add"><a href="./config_Add.html" class="layui-btn">新增</a></div>
    </div>
    <!--表格-->
    <div class="layui-form">
        <table class="layui-table" >
            <!--列宽-->
            <colgroup>
                <col width="100">
                <col width="100">
                <col width="200">
                <col width="300">
                <col width="100">
                <col width="600">
                <col width="200">
            </colgroup>
            <!--表格头部-->
            <thead>
            <tr  >
                <th>序号</th>
                <th>配置名称</th>
                <th>配置说明</th>
                <th>详细配置说明</th>
                <th>更新时间</th>
                <th>配置值</th>
                <th>操作</th>
            </tr>
            </thead>
            <!--表格内容-->
            <tbody>
            <foreach name="listConf" item="v">
                <tr>
                    <th>{$v.id}</th>
                    <th>{$v.name}</th>
                    <th>{$v.title}</th>
                    <th>{$v.remark | substr=0,50}</th>
                    <th>{$v.update_time}</th>
                    <th>{$v.value}</th>
                    <th>
                        <a  href="__CONTROLLER__/modifyConfig/id/{$v.id}" class="layui-btn layui-btn">修改</a>
                        <!--<a href="" onclick="" class="layui-btn layui-btn-danger layui-btn-mini">禁用</a>-->
                    </th>
                </tr>
            </foreach>
            </tbody>
        </table>
    </div>
    </fieldset>
</block>